POV-Ray : Newsgroups : povray.unofficial.patches : megapov bug : Re: megapov bug Server Time
1 Sep 2024 22:17:02 EDT (-0400)
  Re: megapov bug  
From: Warp
Date: 12 Feb 2001 07:11:09
Message: <3a87d2dd@news.povray.org>
Chris Huff <chr### [at] maccom> wrote:
: 1: Changing the blend map data structure to a linked list. Pro: faster 
: parsing. Cons: slower rendering, slightly more memory, more coding.

  I was talking about a TEMPORARY list. First you read the data into the
temporary list, then you allocate a proper-sized array, copy the data from
the list into the array and then destroy the list.

: 3: Making a separate data type for elements of lists and of arrays, use 
: the list type for the temporary list and copy to an array of the array 
: type. Pros: Fast parsing speed, same rendering speed, and only 
: temporarily uses more memory. Cons: Much more coding than either of the 
: above, and seems like a generally clumsy solution.

  Coding a list is very easy and fast to code. And with the upcoming pov3.5
you'll be able to use STL lists so you don't have to code at all.
  And it's not a clumsy solution. It's a clean and smart solution. Using
a (hand-coded) dynamic array is the clumsy solution.

-- 
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););}    /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.